<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <!-- 1.lazy修饰符 -->
    <input type="text" v-model.lazy="message">
    <h2>当前内容：{{message}}</h2>

    <!-- 2.number修饰符 -->
    <input type="text" v-model.number="age">
    <h2>年龄：{{age}} 类型：{{typeof age}}</h2>

    <!-- 3.trim修饰符 -->
    <input type="text" v-model.trim="name">
    <h2>您输入的名字:----{{name}}----</h2>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        message: '',
        age: 0,
        name: ''
      },
  })
  </script>
</body>
</html>